package com.hulizuofang.wol.chat.client.action;

import java.io.Serializable;

import com.gwtplatform.dispatch.shared.UnsecuredActionImpl;

public class LoginAction extends UnsecuredActionImpl<LoginResult> implements Serializable {
	private static final long serialVersionUID = 1L;

	private String login;

	protected LoginAction() {}
	
	public LoginAction(String login) {
		this.login = login;
	}
	
	public interface LoginWorker<X> {
		X work(String login);
	}

	public <X> X workLogin(LoginWorker<X> loginWorker) {
		return loginWorker.work(login);
	}
}
